package cn.cvs.service.impl;

import cn.cvs.dao.StorageRecordMapper;
import cn.cvs.pojo.StorageRecord;
import cn.cvs.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StorageServiceImpl implements StorageService {
    @Autowired
    private StorageRecordMapper storageRecordMapper;

    @Override
    public List<StorageRecord> list(String goodsName,String supName,Integer payStatus, Integer pageIndex, Integer pageSize) {
        return storageRecordMapper.list(goodsName,supName,payStatus, pageIndex, pageSize);
    }

    @Override
    public int count(String goodsName) {
        int result = storageRecordMapper.count(goodsName);
        return result;
    }
}
